<%
//下载APP
layout("/inc/layout.html",{
title:'公司基本信息 - 工商备案 - 智慧洛龙',
keywords:'公司基本信息,工商备案,智慧洛龙',
description:'公司基本信息,工商备案,智慧洛龙',
style:'index.css'
}){
%>
<section class="container mt15">
        <div class="panel panel-info">
            <div class="panel-heading text-center center-block">
                <div class="btn-group">
                    <%  layout("/company/title.html"){} %>
                </div>
            </div>
            <div class="panel-body">
                <form class="form-horizontal col-sm-offset-1 col-sm-9" id="companyIndexForm" method="post" role="form">
                    <input id="id" name="id" class="form-control" type="hidden" value="${companyRecord.id!}">
                    <legend>公司基本信息&emsp;&emsp;<span class="text text-danger" id="messageCode"></span></legend>
                    <div class="form-group">
                        <label for="companyBrand" class="col-sm-2 control-label">企业名称：</label>
                        <div class="col-sm-5">
                            <div class="input-group">
                                <span class="input-group-addon">洛阳</span>
                                <input id="companyBrand" name="companyBrand" class="form-control" type="text" placeholder="字号" required="required" aria-required="true" minlength="2" maxlength="15"
                                       value="${companyRecord.companyBrand!}">
                            </div>
                        </div>
                        <div class="col-sm-5">
                            <div class="input-group">
                                <input id="industry" name="industry" class="form-control" type="text" placeholder="行业" required="required" aria-required="true" minlength="2" maxlength="15"
                                       value="${companyRecord.industry!}">
                                <span class="input-group-addon">有限公司</span>
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="companyCode" class="col-sm-2 control-label">统一社会代码：</label>
                        <div class="col-sm-10">
                                <input id="companyCode" name="companyCode" class="form-control" type="text" placeholder="请输入统一社会信用代码" required="required" aria-required="true"
                                       minlength="5" maxlength="50" value="${companyRecord.companyCode!}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="companyAddress" class="col-sm-2 control-label">注册地：</label>
                        <div class="col-sm-10">
                            <div class="input-group">
                                <span class="input-group-addon">洛阳市洛龙区</span>
                                <input id="companyAddress" name="companyAddress" class="form-control" type="text" placeholder="请输入注册地的详细地址，具体到门牌号" required="required" aria-required="true"
                                       minlength="5" maxlength="50" value="${companyRecord.companyAddress!}">
                            </div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="registeredCapital" class="col-sm-2 control-label">注册资本：</label>
                        <div class="col-sm-10">
                            <div class="input-group">
                                <input id="registeredCapital" name="registeredCapital" class="form-control" type="number" placeholder="请输入注册资本（万元）" required="required" aria-required="true" min="1"
                                       maxlength="10" value="${companyRecord.registeredCapital!}">
                                <span class="input-group-addon">万元</span>
                            </div>
                        </div>
                    </div>

                </form>
            </div>

            <div class="panel-footer">
                <div class="col-sm-offset-3 clearfix">
                    <div class="mt5 mb5 block col-sm-3">
                        <a href="/user/index" class="btn btn-warning btn-lg btn-outline btn-block">返回列表</a>
                    </div>
                    <% if(isNotEmpty(companyRecord.id)){  %>
                    <div class="mt5 mb5 block col-sm-3">
                        <a href="/companyRecordMember/shareholder/${companyRecord.id}" class="btn btn-success btn-lg btn-outline btn-block">跳过</a>
                    </div>
                    <% }  %>
                    <div class="mt5 mb5 block col-sm-3">
                        <button type="button" id="doSubmit" class="btn btn-danger btn-lg btn-outline btn-block">下一步</button>
                    </div>
                </div>
            </div>

        </div>
</section>
<% } %>
<script>
    require(['modules/company_record'], function (record) {
        record.index();
    });
</script>
</body>
</html>